package com.isoft.systemprovidor.controller.approval;

import com.isoft.systemprovidor.bean.ResponseData;
import com.isoft.systemprovidor.entity.approval.Approval_PAP;
import com.isoft.systemprovidor.entity.approval.Approval_PRP;
import com.isoft.systemprovidor.service.approval.Approval_PAP_Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@Slf4j
@RequestMapping("/systemprovidor/approvalpap")
public class Approval_PAP_Controller {
    @Autowired
    Approval_PAP_Service papService;

    /*审核人员操作*/
    //分页获取审批信息
    @GetMapping("/getallpage")
    public ResponseData getallPage (Integer current, Integer size , Integer appoperate , String name ){
        return papService.getallPage(current,size,appoperate,name);
    }
    //办理审核业务
    @PutMapping("audit")
    public ResponseData auditService( @RequestBody Approval_PAP approval){
        return papService.auditService(approval);
    }

    //分页查询我的已办
    @GetMapping("/getmydone")
    public ResponseData getPageMyDone(Integer current,Integer size ,String audituserid){
        return papService.getPageMyDone(current,size,audituserid);
    }

}
